package org.bozo.im.service.protocols.xmpp.stanza.task.starttls;

import org.bozo.im.service.protocols.xmpp.XMPPSession;
import org.bozo.im.service.protocols.xmpp.stanza.Stanza;
import org.bozo.im.service.protocols.xmpp.stanza.generator.StanzaGenerator;
import org.bozo.im.service.protocols.xmpp.stanza.task.Task;

public class StartTlsTask extends Task {
	
	public StartTlsTask(String pId) {
		super(pId);
	}

	@Override
	public void doTask(XMPPSession pSession, StringBuilder pBuilder) {
		(new StanzaGenerator(Stanza.STARTTLS_STARTTLS)).toXml(pBuilder);
	}
}
